﻿namespace HutongGames.PlayMaker
{
    using System;
    using UnityEngine;

    [Serializable]
    public class FsmOwnerDefault
    {
        [SerializeField]
        private FsmGameObject gameObject;
        [SerializeField]
        private OwnerDefaultOption ownerOption;

        public FsmOwnerDefault()
        {
            this.ownerOption = OwnerDefaultOption.UseOwner;
            this.gameObject = new FsmGameObject(string.Empty);
        }

        public FsmOwnerDefault(FsmOwnerDefault source)
        {
            if (source != null)
            {
                this.ownerOption = source.ownerOption;
                this.gameObject = new FsmGameObject(source.GameObject);
            }
        }

        public FsmGameObject GameObject
        {
            get
            {
                return this.gameObject;
            }
            set
            {
                this.gameObject = value;
            }
        }

        public OwnerDefaultOption OwnerOption
        {
            get
            {
                return this.ownerOption;
            }
            set
            {
                this.ownerOption = value;
            }
        }
    }
}

